package com.turing.mission.mapper;

import com.turing.mission.entity.Mission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author dell
* @description 针对表【mission(任务)】的数据库操作Mapper
* @createDate 2023-05-08 22:36:13
* @Entity com.turing.mission.entity.Mission
*/
public interface MissionMapper extends BaseMapper<Mission> {


    List<Map> listMission();

    List<Map> miList(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("merchantName") String merchantName, @Param("longitude") String longitude, @Param("latitude") String latitude, @Param("cityId") String cityId, @Param("merchantId") String merchantId, @Param("mtId") String mtId, @Param("sortType") Integer sortType, @Param("orderType") Integer orderType, @Param("username") String username, @Param("misIds") List<String> misIds, @Param("type") int type);

    List<Mission>selectMap();


    Double selectDis(@Param("longitude") String longitude, @Param("latitude") String latitude, @Param("merchantId") String merchantId);

    List<String> selectMiId(String merchantId);

    List<Map> miListByIds(@Param("cusId") String cusId, @Param("list") String[] ids);
}




